﻿@model ServerManager.Models.App

@{
    ViewData["Title"] = "Details";
}

<div style="height:40px;line-height:40px;margin-top:10px;">
    <div style="float:left;font-size:2em;">应用详情</div>
    <div style="float:right"><a class="btn btn-info" asp-action="Index">返回列表</a></div>
</div>

<div>
    <hr />
    <table class="my-table col-md-12">
        <tr>
            <td class="col-md-1">@Html.DisplayNameFor(model => model.Name)</td>
            <td class="col-md-5">@Html.DisplayFor(model => model.Name)</td>
            <td class="col-md-1">@Html.DisplayNameFor(model => model.Url)</td>
            <td class="col-md-5">@Html.DisplayFor(model => model.Url)</td>
        </tr>
        <tr>
            <td>
                @Html.DisplayNameFor(model => model.Manager)
            </td>
            <td> @Html.DisplayFor(model => model.Manager)</td>
            <td> @Html.DisplayNameFor(model => model.Developer)</td>
            <td>@Html.DisplayFor(model => model.Developer)</td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(model => model.DeveloperContact)</td>
            <td> @Html.DisplayFor(model => model.DeveloperContact)</td>
            <td> @Html.DisplayNameFor(model => model.Server.Position)</td>
            <td>
                <a asp-controller="Server" asp-action="Details" asp-route-id="@Model.Server.Id">
                    @Html.DisplayFor(model => model.Server.Position)
                </a>
            </td>
        </tr>
        <tr>
            <td>@Html.DisplayNameFor(model => model.Remark)</td>
            <td> @Html.DisplayFor(model => model.Remark)</td>
            <td></td>
            <td></td>
        </tr>
    </table>
</div>
<div style="margin-top:20px;">
    <a class="btn btn-danger" asp-action="delete" asp-route-id="@Model.Id"  onclick="javascript:if(confirm('确定要删除此信息吗？')){return true;}return false;">删除</a>
</div>
